package com.muzi.responsibility;

/**
 * ClassName:SafetyHandler
 * Package:S{PACKAGE_NAME}
 * Description:
 *
 * @Author 小雷
 * @Create 2025/5/30 14:32
 * @Version 1.0
 */
public abstract class SafetyHandler {
    protected SafetyHandler next; //传递给下一个接收者

    public void setNext(SafetyHandler next) {
        this.next = next;
    }

    public abstract void handleEvent(String event);
}
